package com.edu.whty.service;

import com.edu.whty.entity.base.SpecialRepo;
import com.edu.whty.entity.school.SpecialResourceCatalog;
import com.edu.whty.entity.school.SpecialResourcesBase;
import com.edu.whty.entity.school.TextbookQryDto;
import net.sf.json.JSONArray;

import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @author luyao
 * @explain
 * @date 2021/5/29
 */
public interface SpecialRepoService {
    int addSpecialRepo(SpecialRepo specialRepo);

    int updateSpecialRepo(SpecialRepo specialRepo);

    SpecialRepo getSpecialRepo(String id);

    List<SpecialRepo> getSpecialRepoList(String id);


    int batchAddSpecialRepo(List<SpecialRepo>list);

    void batchUploadSpecialRepo(List<SpecialRepo>list);

    JSONArray queryCatalogTreeByUser(Map<String, Object> mapParam, TextbookQryDto dto);

    void editUserCatalog(List<SpecialResourcesBase> specialResourcesBases);

    void batchDeleteSpecialRepos(List<SpecialRepo>list);

    SpecialResourcesBase getSpecialRepoBase(String id);

    void batchAddSpecialRepoBase(List<SpecialResourcesBase> listAdd);

    void batchUploadSpecialRepoBase(List<SpecialResourcesBase> listUpdate);

    SpecialResourceCatalog getSpecialResCata(String catalogId);

    void batchAddSpecialResCata(List<SpecialResourceCatalog> list1Add);

    void batchUploadSpecialResCata(List<SpecialResourceCatalog> list1Update);
}
